import request from '@/utils/request'

// 查询期刊元数据列表
export function listBasic(query) {
  return request({
    url: '/library/periodicalBasic/list',
    method: 'get',
    params: query
  })
}

// 查询期刊元数据详细
export function getBasic(sysid) {
  return request({
    url: '/library/periodicalBasic/' + sysid,
    method: 'get'
  })
}

// 新增期刊元数据
export function addBasic(data) {
  return request({
    url: '/library/periodicalBasic',
    method: 'post',
    data: data
  })
}

// 修改期刊元数据
export function updateBasic(data) {
  return request({
    url: '/library/periodicalBasic',
    method: 'put',
    data: data
  })
}

// 删除期刊元数据
export function delBasic(sysid) {
  return request({
    url: '/library/periodicalBasic/' + sysid,
    method: 'delete'
  })
}

// 导出期刊元数据
export function exportBasic(query) {
  return request({
    url: '/library/periodicalBasic/export',
    method: 'get',
    params: query
  })
}
